import { connect } from "dva";
import styles from "./index.less";
import { WingBlank, InputItem, Button, List } from "antd-mobile";
import router from "umi/router";

function App({ changePwd, dispatch }) {
  const { text, list } = changePwd;
  return (
    <div className={styles.normal}>
      <WingBlank>
        <div className={styles.first}>
          <List>
            <InputItem
              type="password"
              clear
              className={styles.input_style}
              placeholder="请输入新密码"
            />
          </List>
        </div>
        <div className={styles.second}>
          <List>
            <InputItem
              type="password"
              className={styles.input_style}
              clear
              placeholder="确认新密码"
            />
          </List>
        </div>
        <div className={styles.third}>
          <Button className={styles.button} onClick={()=>router.push("mainpage")}>
            提交
          </Button>
        </div>
      </WingBlank>
    </div>
  );
}
export default connect(({ changePwd }) => ({ changePwd }))(App);
